package com.example.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.entity.Book;
import com.example.demo.mapper.BookMapper;
import com.example.demo.service.BookServices;

@Service
public class BookServiceImpl implements BookServices {

  @Autowired
  private BookMapper bookMapper;

  @Override
  public Book findById(int id) {
    return bookMapper.findById(id);
  }

}
